//
//  YRJMyButton.m
//  YanRenjie
//
//  Created by dllo on 15/11/6.
//  Copyright (c) 2015年 yanrenjie. All rights reserved.
//

#import "YRJMyButton.h"

@implementation YRJMyButton

-(void)addNewTarget:(id)target action:(SEL)action{
    
    self.target = target;
    self.action = action;
    
}

-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
    
    [self.target performSelector:self.action withObject:self];
    
    
}

@end
